/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package vn.edu.hcmus.fit.se.mdd.mbuid.android7cui.impl;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

import vn.edu.hcmus.fit.se.mdd.mbuid.android7cui.*;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class Android7cuiFactoryImpl extends EFactoryImpl implements Android7cuiFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Android7cuiFactory init() {
		try {
			Android7cuiFactory theAndroid7cuiFactory = (Android7cuiFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.fit.hcmus.edu.vn/se/mdd/android7cui"); 
			if (theAndroid7cuiFactory != null) {
				return theAndroid7cuiFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new Android7cuiFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Android7cuiFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case Android7cuiPackage.ANALOG_CLOCK: return createAnalogClock();
			case Android7cuiPackage.AUTO_COMPLETE_TEXT_VIEW: return createAutoCompleteTextView();
			case Android7cuiPackage.BUTTON: return createButton();
			case Android7cuiPackage.CHRONOMETER: return createChronometer();
			case Android7cuiPackage.DATE_PICKER: return createDatePicker();
			case Android7cuiPackage.DIGITAL_CLOCK: return createDigitalClock();
			case Android7cuiPackage.EDIT_TEXT: return createEditText();
			case Android7cuiPackage.GALLERY: return createGallery();
			case Android7cuiPackage.IMAGE_BUTTON: return createImageButton();
			case Android7cuiPackage.IMAGE_VIEW: return createImageView();
			case Android7cuiPackage.MULTI_AUTO_COMPLETE_TEXT_VIEW: return createMultiAutoCompleteTextView();
			case Android7cuiPackage.PROGRESS_BAR: return createProgressBar();
			case Android7cuiPackage.RADIO_BUTTON: return createRadioButton();
			case Android7cuiPackage.RATING_BAR: return createRatingBar();
			case Android7cuiPackage.SEEK_BAR: return createSeekBar();
			case Android7cuiPackage.SPINNER: return createSpinner();
			case Android7cuiPackage.TEXT_VIEW: return createTextView();
			case Android7cuiPackage.TIME_PICKER: return createTimePicker();
			case Android7cuiPackage.TOGGLE_BUTTON: return createToggleButton();
			case Android7cuiPackage.VIDEO_VIEW: return createVideoView();
			case Android7cuiPackage.ZOOM_BUTTON: return createZoomButton();
			case Android7cuiPackage.ZOOM_CONTROL: return createZoomControl();
			case Android7cuiPackage.CHECK_BOX: return createCheckBox();
			case Android7cuiPackage.ACTIVITY: return createActivity();
			case Android7cuiPackage.SUB_MENU: return createSubMenu();
			case Android7cuiPackage.MENU_ITEM: return createMenuItem();
			case Android7cuiPackage.CONTEXT_MENU: return createContextMenu();
			case Android7cuiPackage.MENU: return createMenu();
			case Android7cuiPackage.LAYOUT: return createLayout();
			case Android7cuiPackage.VIEW_GROUP: return createViewGroup();
			case Android7cuiPackage.PRESENTATION_SYSTEM: return createPresentationSystem();
			case Android7cuiPackage.LIST_VIEW: return createListView();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AnalogClock createAnalogClock() {
		AnalogClockImpl analogClock = new AnalogClockImpl();
		return analogClock;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AutoCompleteTextView createAutoCompleteTextView() {
		AutoCompleteTextViewImpl autoCompleteTextView = new AutoCompleteTextViewImpl();
		return autoCompleteTextView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Button createButton() {
		ButtonImpl button = new ButtonImpl();
		return button;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Chronometer createChronometer() {
		ChronometerImpl chronometer = new ChronometerImpl();
		return chronometer;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public DatePicker createDatePicker() {
		DatePickerImpl datePicker = new DatePickerImpl();
		return datePicker;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public DigitalClock createDigitalClock() {
		DigitalClockImpl digitalClock = new DigitalClockImpl();
		return digitalClock;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EditText createEditText() {
		EditTextImpl editText = new EditTextImpl();
		return editText;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Gallery createGallery() {
		GalleryImpl gallery = new GalleryImpl();
		return gallery;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ImageButton createImageButton() {
		ImageButtonImpl imageButton = new ImageButtonImpl();
		return imageButton;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ImageView createImageView() {
		ImageViewImpl imageView = new ImageViewImpl();
		return imageView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public MultiAutoCompleteTextView createMultiAutoCompleteTextView() {
		MultiAutoCompleteTextViewImpl multiAutoCompleteTextView = new MultiAutoCompleteTextViewImpl();
		return multiAutoCompleteTextView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ProgressBar createProgressBar() {
		ProgressBarImpl progressBar = new ProgressBarImpl();
		return progressBar;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RadioButton createRadioButton() {
		RadioButtonImpl radioButton = new RadioButtonImpl();
		return radioButton;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public RatingBar createRatingBar() {
		RatingBarImpl ratingBar = new RatingBarImpl();
		return ratingBar;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SeekBar createSeekBar() {
		SeekBarImpl seekBar = new SeekBarImpl();
		return seekBar;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Spinner createSpinner() {
		SpinnerImpl spinner = new SpinnerImpl();
		return spinner;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public TextView createTextView() {
		TextViewImpl textView = new TextViewImpl();
		return textView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public TimePicker createTimePicker() {
		TimePickerImpl timePicker = new TimePickerImpl();
		return timePicker;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ToggleButton createToggleButton() {
		ToggleButtonImpl toggleButton = new ToggleButtonImpl();
		return toggleButton;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public VideoView createVideoView() {
		VideoViewImpl videoView = new VideoViewImpl();
		return videoView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ZoomButton createZoomButton() {
		ZoomButtonImpl zoomButton = new ZoomButtonImpl();
		return zoomButton;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ZoomControl createZoomControl() {
		ZoomControlImpl zoomControl = new ZoomControlImpl();
		return zoomControl;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CheckBox createCheckBox() {
		CheckBoxImpl checkBox = new CheckBoxImpl();
		return checkBox;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Activity createActivity() {
		ActivityImpl activity = new ActivityImpl();
		return activity;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SubMenu createSubMenu() {
		SubMenuImpl subMenu = new SubMenuImpl();
		return subMenu;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public MenuItem createMenuItem() {
		MenuItemImpl menuItem = new MenuItemImpl();
		return menuItem;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ContextMenu createContextMenu() {
		ContextMenuImpl contextMenu = new ContextMenuImpl();
		return contextMenu;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Menu createMenu() {
		MenuImpl menu = new MenuImpl();
		return menu;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Layout createLayout() {
		LayoutImpl layout = new LayoutImpl();
		return layout;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ViewGroup createViewGroup() {
		ViewGroupImpl viewGroup = new ViewGroupImpl();
		return viewGroup;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public PresentationSystem createPresentationSystem() {
		PresentationSystemImpl presentationSystem = new PresentationSystemImpl();
		return presentationSystem;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ListView createListView() {
		ListViewImpl listView = new ListViewImpl();
		return listView;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Android7cuiPackage getAndroid7cuiPackage() {
		return (Android7cuiPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static Android7cuiPackage getPackage() {
		return Android7cuiPackage.eINSTANCE;
	}

} //Android7cuiFactoryImpl
